package com.ischoolbar.programmer.dao.admin;

import com.ischoolbar.programmer.entity.admin.Authority;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AuthorityDao {
    /*
     * 编辑功能:
     * 1. 先删除原有信息
     * 2. 添加新的信息
     * */
    public abstract void add(Authority authority);
    public abstract void delete(Integer id);
    public abstract List<Authority> findAllAuthority();
    public abstract List<Authority> findAuthorityByRoleId(Integer roleId);
}
